package com.dubbo;

import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;

//声明该类是一个SpringBoot引导类(相当于三个注解)
@SpringBootApplication
@EnableDubboConfiguration
@MapperScan(basePackages = "com.dubbo.mapper")
public class ProviderApplication {
    public static void main(String[] args) {
        //run方法 表示运行SpringBoot的引导类  run参数就是SpringBoot引导类的字节码对象 //加载该字节码包下的所有资源
        SpringApplication.run(ProviderApplication.class);
    }
}
